let initialState = []

export default function (state = initialState, action) {
    let { type, payload } = action;
    console.log(payload)
    switch (type) {
        case "FETCH_CART_SUCCESS": //请求成功 返回状态
            return [...payload]
        default:
            return [...state]
    }

}